#coding: utf-8
import json
import datetime

x = '{ "name":"John", "age": 30, "city":"New York" }'

y = json.loads(x)

print(y["age"])
print(y)

x = {
  "name": "John",
  "age": 30,
  "city": "New York"
}

# convert into JSON:
y = json.dumps(x)

# the result is a JSON string:
print(y)

x = datetime.datetime.now()

print(x)
print(x.year)
# %A %B %C %D %E %F %G
print(x.strftime('%D'))


x = datetime.datetime(2020, 5, 7)

print(x)